$result = $db_zugriff->query("SELECT userid, username, age_d, age_y FROM bb".$n."_user_table WHERE age_m = '$monthname' $where2 ORDER BY username ASC");
$result = $db_zugriff->query("SELECT eventid, subject, eventdate, public FROM bb".$n."_events WHERE eventdate LIKE '$currentdate%' AND ((userid >= 1 AND userid = '$user_id') OR public = '1') ORDER BY public ASC, subject ASC");
$event = $db_zugriff->query_first("SELECT bb".$n."_events.*, bb".$n."_user_table.username FROM bb".$n."_events LEFT JOIN bb".$n."_user_table USING (userid) WHERE eventid='$id'");